package ssm.mapper;

import org.apache.ibatis.annotations.Param;
import ssm.myPojo.PubCustom;
import ssm.myPojo.SourQueryVo;
import ssm.pojo.Pub;
import ssm.pojo.PubExample;

import java.util.List;

public interface PubMapper {
    long countByExample(PubExample example);

    int deleteByExample(PubExample example);

    int deleteByPrimaryKey(Integer pubId);

    int insert(PubCustom pubCustom);

    int insertSelective(Pub record);

    List<Pub> selectByExample(PubExample example);

    Pub selectByPrimaryKey(Integer pubId);

    List<String> selectAllType();

    List<PubCustom> selectAllByLike(SourQueryVo sourQueryVo);

    List<PubCustom> selectPubByType(String Type);

    List<PubCustom> selectPubByName(String name);

    int updateByExampleSelective(@Param("record") Pub record, @Param("example") PubExample example);

    int updateByExample(@Param("record") Pub record, @Param("example") PubExample example);

    int updateByPrimaryKeySelective(Pub record);

    int updateByPrimaryKey(Pub record);
}